//
//  YSAccountCenterBusinessHeaderView.m
//  Yueshi
//
//  Created by Northwan on 15/7/30.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import "YSAccountCenterBusinessHeaderView.h"

@interface YSAccountCenterBusinessHeaderView()
@property (weak, nonatomic) IBOutlet UIImageView *logoView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@end
@implementation YSAccountCenterBusinessHeaderView


+(instancetype)headerView{
    return [[[NSBundle mainBundle ]loadNibNamed:@"YSAccountCenterBusinessHeaderView" owner:nil options:nil]lastObject];
}

-(void)setSupplier:(YSSupplier *)supplier{
    _supplier = supplier;
    
    [self.logoView setImageURLStr:supplier.logo];
    [self.nameLabel setText:supplier.supplierName];
}

@end
